inherited fmAddEditRPS: TfmAddEditRPS
  Left = 711
  Top = 302
  Width = 813
  Height = 597
  Caption = 'fmAddEditRPS'
  Constraints.MinHeight = 597
  Constraints.MinWidth = 419
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited sbBottom: TStatusBar
    Top = 543
    Width = 805
  end
  inherited Panel1: TPanel
    Width = 805
    inherited BitBtn1: TBitBtn
      Left = 635
    end
    inherited BitBtn2: TBitBtn
      Left = 723
    end
  end
  object cxDBVerticalGrid1: TcxDBVerticalGrid [2]
    Left = 0
    Top = 97
    Width = 321
    Height = 446
    Align = alLeft
    Enabled = False
    LookAndFeel.SkinName = 'Office2007Blue'
    OptionsView.RowHeaderWidth = 189
    Styles.Content = DMInv.cxData
    TabOrder = 2
    DataController.DataSource = dlgDS
    DataController.GridMode = True
    object cxDBVerticalGrid1CategoryRow1: TcxCategoryRow
    end
    object cxDBVerticalGrid1DBEditorRow1: TcxDBEditorRow
      Properties.Caption = #1058#1086#1074#1072#1088' '#1080#1083#1080' '#1091#1089#1083#1091#1075#1072
      Properties.EditPropertiesClassName = 'TcxButtonEditProperties'
      Properties.EditProperties.Buttons = <
        item
          Default = True
          Kind = bkEllipsis
        end>
      Properties.EditProperties.OnButtonClick = cxDBVerticalGrid1DBEditorRow1EditPropertiesButtonClick
      Properties.DataBinding.FieldName = 'SDNAME'
    end
    object cxDBVerticalGrid1DBEditorRow2: TcxDBEditorRow
      Properties.Caption = #1045#1076'. '#1080#1079#1084'.'
      Properties.EditPropertiesClassName = 'TcxLookupComboBoxProperties'
      Properties.EditProperties.KeyFieldNames = 'SDID'
      Properties.EditProperties.ListColumns = <
        item
          FieldName = 'SDNAME'
        end>
      Properties.EditProperties.ListOptions.ShowHeader = False
      Properties.EditProperties.ListSource = dsSDEd_izmer
      Properties.DataBinding.FieldName = 'SDID_ED_IZM'
    end
    object cxDBVerticalGrid1DBEditorRow5: TcxDBEditorRow
      Properties.Caption = #1042#1077#1089'/V '#1091#1087#1072#1082#1086#1074#1082#1080
      Properties.DataBinding.FieldName = 'VESORV'
    end
    object cxDBVerticalGrid1DBEditorRow8: TcxDBEditorRow
      Properties.Caption = #1044#1072#1090#1072' '#1087#1088#1086#1080#1079#1074'.'
      Properties.DataBinding.FieldName = 'RPSDATEPROD'
    end
    object cxDBVerticalGrid1DBEditorRow9: TcxDBEditorRow
      Properties.Caption = #1043#1086#1076#1077#1085' '#1076#1086
      Properties.DataBinding.FieldName = 'RPSDATEPRODEND'
    end
    object cxDBVerticalGrid1DBEditorRow4: TcxDBEditorRow
      Properties.Caption = #1050#1086#1083#1080#1095'.'
      Properties.EditPropertiesClassName = 'TcxCalcEditProperties'
      Properties.DataBinding.FieldName = 'RPSKOL'
    end
    object cxDBVerticalGrid1DBEditorRow3: TcxDBEditorRow
      Properties.Caption = #1062#1077#1085#1072
      Properties.EditPropertiesClassName = 'TcxCalcEditProperties'
      Properties.DataBinding.FieldName = 'RPSCENA'
    end
    object cxDBVerticalGrid1DBEditorRow6: TcxDBEditorRow
      Properties.Caption = #1057#1090#1086#1080#1084#1086#1089#1090#1100
      Properties.DataBinding.FieldName = 'RPSSUMMA'
      Properties.Options.Editing = False
    end
    object cxDBVerticalGrid1DBEditorRow7: TcxDBEditorRow
      Properties.Caption = #1055#1088#1086#1073#1077#1075' '#1072#1074#1090#1086
      Properties.DataBinding.FieldName = 'RPSSPEEDOMETR'
    end
    object cxDBVerticalGrid1CategoryRow2: TcxCategoryRow
      Properties.Caption = #1057#1087#1080#1089#1072#1085#1080#1077
      object cxDBVerticalGrid1DBEditorRow10: TcxDBEditorRow
        Properties.Caption = #1055#1086#1090#1088#1077#1073#1080#1090#1077#1083#1100
        Properties.EditPropertiesClassName = 'TcxLookupComboBoxProperties'
        Properties.EditProperties.ListColumns = <>
        Properties.DataBinding.FieldName = 'DOLID_POTREBITEL'
      end
      object cxDBVerticalGrid1DBEditorRow11: TcxDBEditorRow
        Properties.Caption = #1055#1086#1076#1088#1072#1079#1076#1077#1083#1077#1085#1080#1077'-'#1087#1086#1090#1088#1077#1073#1080#1090#1077#1083#1100
        Properties.EditPropertiesClassName = 'TcxButtonEditProperties'
        Properties.EditProperties.Buttons = <
          item
            Default = True
            Kind = bkEllipsis
          end>
        Properties.DataBinding.FieldName = 'SDID_POTREBITEL_OBJECT'
      end
      object cxDBVerticalGrid1DBEditorRow12: TcxDBEditorRow
        Properties.Caption = #1057#1090#1072#1090#1100#1103' '#1088#1072#1089#1093#1086#1076#1086#1074
        Properties.EditPropertiesClassName = 'TcxLookupComboBoxProperties'
        Properties.EditProperties.ListColumns = <>
        Properties.DataBinding.FieldName = 'SDID_STATJA_RASHODOV'
      end
    end
    object cxDBVerticalGrid1CategoryRow3: TcxCategoryRow
    end
    object cxDBVerticalGrid1DBEditorRow13: TcxDBEditorRow
      Height = 100
      Properties.Caption = #1050#1086#1084#1084#1077#1085#1090#1072#1088#1080#1081
      Properties.DataBinding.FieldName = 'RPSNOTE'
    end
  end
  object Panel2: TPanel [3]
    Left = 0
    Top = 45
    Width = 805
    Height = 52
    Align = alTop
    BevelOuter = bvNone
    TabOrder = 3
    object cxLabel1: TcxLabel
      Left = 8
      Top = 0
      Caption = #1058#1080#1087' '#1087#1086#1079#1080#1094#1080#1080' '#1074' '#1095#1077#1082#1077
      ParentFont = False
      Style.Font.Charset = DEFAULT_CHARSET
      Style.Font.Color = clGray
      Style.Font.Height = -11
      Style.Font.Name = 'Tahoma'
      Style.Font.Style = []
      Style.LookAndFeel.SkinName = 'Office2007Blue'
      Style.IsFontAssigned = True
      StyleDisabled.LookAndFeel.SkinName = 'Office2007Blue'
      StyleFocused.LookAndFeel.SkinName = 'Office2007Blue'
      StyleHot.LookAndFeel.SkinName = 'Office2007Blue'
    end
    object lcbRPStype: TcxDBLookupComboBox
      Left = 8
      Top = 20
      DataBinding.DataField = 'RPSSDID_TYPE'
      DataBinding.DataSource = dlgDS
      ParentFont = False
      Properties.KeyFieldNames = 'SDID'
      Properties.ListColumns = <
        item
          FieldName = 'SDNAME'
        end>
      Properties.ListOptions.ShowHeader = False
      Properties.ListSource = dsRPSType
      Properties.OnChange = lcbRPStypePropertiesCloseUp
      Properties.OnCloseUp = lcbRPStypePropertiesCloseUp
      Style.Font.Charset = DEFAULT_CHARSET
      Style.Font.Color = clWindowText
      Style.Font.Height = -15
      Style.Font.Name = 'Tahoma'
      Style.Font.Style = []
      Style.LookAndFeel.Kind = lfFlat
      Style.LookAndFeel.SkinName = 'Office2007Blue'
      Style.Shadow = True
      Style.IsFontAssigned = True
      StyleDisabled.LookAndFeel.Kind = lfFlat
      StyleDisabled.LookAndFeel.SkinName = 'Office2007Blue'
      StyleFocused.LookAndFeel.Kind = lfFlat
      StyleFocused.LookAndFeel.SkinName = 'Office2007Blue'
      StyleHot.LookAndFeel.Kind = lfFlat
      StyleHot.LookAndFeel.SkinName = 'Office2007Blue'
      TabOrder = 1
      Width = 225
    end
  end
  inherited dlgDS: TDataSource
    Left = 88
    Top = 8
  end
  object qSDEd_izmer: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    SQL.Strings = (
      'SELECT t1.*'
      'FROM'
      '('
      'WITH   recursive'
      '   tree (SDNAME, SDID, SDPARID)'
      '   AS (SELECT SD.SDNAME, SD.SDID, sd.SDPARID FROM SYS_DIC SD'
      '      WHERE sd.SDPARID = 9'
      '      UNION ALL'
      '      SELECT SD1.SDNAME, SD1.SDID, sd1.SDPARID'
      ''
      '      FROM SYS_DIC SD1'
      '          INNER JOIN tree t '
      '           ON t.sdid = sd1.SDPARID)'
      ' SELECT  SDNAME, SDID, SDPARID FROM tree t'
      ') AS t1'
      'order by 1')
    GeneratorField.Field = 'SDID'
    Left = 160
    Top = 8
    object qSDEd_izmerSDNAME: TIBStringField
      FieldName = 'SDNAME'
      ProviderFlags = []
      Size = 255
    end
    object qSDEd_izmerSDID: TIntegerField
      FieldName = 'SDID'
      ProviderFlags = []
    end
    object qSDEd_izmerSDPARID: TIntegerField
      FieldName = 'SDPARID'
      ProviderFlags = []
    end
  end
  object dsSDEd_izmer: TDataSource
    DataSet = qSDEd_izmer
    Left = 128
    Top = 8
  end
  object dsRPSType: TDataSource
    DataSet = qRPSType
    Left = 136
    Top = 96
  end
  object qRPSType: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    SQL.Strings = (
      'SELECT t1.*'
      'FROM'
      '('
      'WITH   recursive'
      '   tree (SDNAME, SDID, SDPARID)'
      '   AS (SELECT SD.SDNAME, SD.SDID, sd.SDPARID FROM SYS_DIC SD'
      '      WHERE sd.SDPARID = 37'
      '      UNION ALL'
      '      SELECT SD1.SDNAME, SD1.SDID, sd1.SDPARID'
      ''
      '      FROM SYS_DIC SD1'
      '          INNER JOIN tree t '
      '           ON t.sdid = sd1.SDPARID)'
      ' SELECT  SDNAME, SDID, SDPARID FROM tree t'
      ') AS t1'
      'order by 1')
    GeneratorField.Field = 'SDID'
    Left = 168
    Top = 96
    object qRPSTypeSDNAME: TIBStringField
      FieldName = 'SDNAME'
      ProviderFlags = []
      Size = 255
    end
    object qRPSTypeSDID: TIntegerField
      FieldName = 'SDID'
      ProviderFlags = []
    end
    object qRPSTypeSDPARID: TIntegerField
      FieldName = 'SDPARID'
      ProviderFlags = []
    end
  end
end
